

// console.log('filePath', __dirname);
// console.log('filePathtest', __filename);
// console.log('process.cwd()', process.cwd());
import { fileURLToPath } from 'url';
import { dirname } from 'path';

const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
console.log('url', import.meta.url)
console.log('filePath', __dirname);
console.log('filePathtest', __filename);


const url1 = new URL('https://github.com/owner/repo/tree/branch');
console.log('https://github.com/owner/repo/tree/branch', url1)